from rest_framework.viewsets import ModelViewSet

from apps.goods.models import Brand
from apps.meiduo_admin.serializers.brand import BrandSerializer
from apps.meiduo_admin.utils import PageNum


class BrandModelViewSet(ModelViewSet):

    queryset = Brand.objects.all()

    serializer_class = BrandSerializer

    pagination_class = PageNum
